package com.sm.dao;

import java.util.List;

import com.sm.model.Activities;
import com.sm.model.UserActivities;
import com.sm.model.VipActivitiesOrder;
import org.apache.ibatis.annotations.Param;

public interface UserActivitiesMapper {
    int deleteByPrimaryKey(Integer userActivitiesId);

    //int insert(UserActivities record);

    int insertSelective(UserActivities record);

    UserActivities selectByPrimaryKey(Integer userActivitiesId);

    UserActivities getUserActivitiesBefore();

    List<UserActivities> getUserActivitiesNow();

    int updateByPrimaryKey(UserActivities record);

    List<UserActivities> selectByUserId(@Param("userId") Integer userId, @Param("userActivitiesStatus") Integer userActivitiesStatus);

    //查询所有的参会券
    List<UserActivities> selectAll();

    //根据活动是否过期批量更改参会券状态（仅定时任务调用）
    int updateBeforeUserActivities(@Param("activitiesId") Integer activitiesId);

    UserActivities selectActivitiesById(@Param("userActivitiesId") Integer userActivitiesId);
}